package ynu.sxp.demoapp.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ynu.sxp.demoapp.entity.OrderDetailet;

import java.util.List;
import java.util.UUID;

@Repository
public interface OrderDetailetRepository extends JpaRepository<OrderDetailet, UUID> {
    OrderDetailet findByOrderIdAndFoodId(UUID orderId, Integer foodId);
    List<OrderDetailet> findByOrderId(UUID orderId);
}